package com.lvmama.pangolin.mybatis.mapper.hotel;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lvmama.pangolin.core.BaseMapper;
import com.lvmama.pangolin.entity.ProductConditionVO;
import com.lvmama.pangolin.entity.hotel.HotelPdetail;
import com.lvmama.pangolin.entity.hotel.HotelProductDetail;

public interface HotelProductDetailMapper extends BaseMapper<HotelProductDetail> {
	public int saveHotelPdetail(HotelPdetail t);
	public int updateHotelPdetail(HotelPdetail t);
	public int updateByProd(HotelProductDetail t);
	public List<HotelProductDetail> findByString(@Param("companyCode")String companyCode,@Param("productName")String productName);
	public List<HotelProductDetail> findByCompanyUrl(@Param("companyCode")String companyCode,@Param("detailUrl")String detailUrl);
	public List<HotelProductDetail> findByProductVO(ProductConditionVO po);
	public HotelProductDetail findByProductId(@Param("productId")String productId,@Param("companyCode")String companyCode);
	public void setIsLinkd(@Param("companyCode")String companyCode,@Param("productId")String productId);
	public void deleteLinkd(@Param("companyCode")String companyCode,@Param("productId")String productId);
	public List<HotelProductDetail>  findByCompanyCode(String companyCode);
}